import { Module } from '@nestjs/common'
import { RouterModule } from '@nestjs/core'
import { ClassModule } from './class/class.module'
import { StudentModule } from './student/student.module'
import { UserModule } from './user/user.module'
import { WallModule } from './wall/wall.module'

const modules = [
  ClassModule,
  WallModule,
  UserModule,
  StudentModule,
]
@Module({
  imports: [
    ...modules,
    RouterModule.register([
      {
        path: 'manage',
        module: ManageModule,
        children: [...modules],
      },
    ]),
  ],
})
export class ManageModule {}
